﻿namespace wwm.LeetCodeHelper;

/// <summary>
/// LeetcodeQuestionDTO
/// </summary>
public class LeetcodeQuestionDTO
{
    public Data data { get; set; }
}

public class Data
{
    public Question question { get; set; }
}

public class Question
{
    public string questionId { get; set; }
    public string questionFrontendId { get; set; }
    public string categoryTitle { get; set; }
    public int boundTopicId { get; set; }
    public string title { get; set; }
    public string titleSlug { get; set; }
    public string content { get; set; }
    public string translatedTitle { get; set; }
    public string translatedContent { get; set; }
    public bool isPaidOnly { get; set; }
    public string difficulty { get; set; }
    public int likes { get; set; }
    public int dislikes { get; set; }
    public object isLiked { get; set; }
    public string similarQuestions { get; set; }
    public object[] contributors { get; set; }
    public string langToValidPlayground { get; set; }
    public Topictag[] topicTags { get; set; }
    public object companyTagStats { get; set; }
    public Codesnippet[] codeSnippets { get; set; }
    public string stats { get; set; }
    public string[] hints { get; set; }
    public object solution { get; set; }
    public object status { get; set; }
    public string sampleTestCase { get; set; }
    public string metaData { get; set; }
    public bool judgerAvailable { get; set; }
    public string judgeType { get; set; }
    public object[] mysqlSchemas { get; set; }
    public bool enableRunCode { get; set; }
    public string envInfo { get; set; }
    public object book { get; set; }
    public bool isSubscribed { get; set; }
    public bool isDailyQuestion { get; set; }
    public object dailyRecordStatus { get; set; }
    public string editorType { get; set; }
    public object ugcQuestionId { get; set; }
    public string style { get; set; }
    public string exampleTestcases { get; set; }
    public string __typename { get; set; }
}

public class Topictag
{
    public string name { get; set; }
    public string slug { get; set; }
    public string translatedName { get; set; }
    public string __typename { get; set; }
}

public class Codesnippet
{
    public string lang { get; set; }
    public string langSlug { get; set; }
    public string code { get; set; }
    public string __typename { get; set; }
}

public class NameTypeDto
{
    public string name { get; set; }
    public string type { get; set; }
}
